'''
Author: @zhyy
Date: 2021-01-27 14:23:32
LastEditors: @zhyy
LastEditTime: 2021-02-07 17:51:01
'''
from app.func.unique_username import generate_username
from app.cache.redis_cache import uname_cache

def add_uname_to_redis():
    while uname_cache.llen("username_list") < 1000:
        uname=generate_username()
        uname_cache.rpush("username_list",uname)